package action;

import modele.Pret;
import com.opensymphony.xwork2.ActionSupport;
import data.PretXML;

public class ListePrets extends ActionSupport {

	private static final long serialVersionUID = 4899536899884355223L;
	private Pret[] listePrets;

	public String execute() throws Exception {
		PretXML pretXML = new PretXML();
		listePrets = pretXML.getListePrets();
		return SUCCESS;
	}

	public Pret[] getListePrets() {
		return listePrets;
	}

	public void setListePrets(Pret[] listePrets) {
		this.listePrets = listePrets;
	}
}
